package com.ruoyi.client.service.impl;

import com.ruoyi.client.domain.Commission;
import com.ruoyi.client.domain.CommissionNo;
import com.ruoyi.client.mapper.CommissionMapper;
import com.ruoyi.client.mapper.CommissionNoMapper;
import com.ruoyi.client.service.ICommissionNoService;
import com.ruoyi.client.service.ICommissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommissionNoServiceImpl implements ICommissionNoService {
    @Autowired
    private CommissionNoMapper commissionNoMapper;
    @Override
    public CommissionNo getCommissionBySymbolAndPrice(String symbol, String buyPrice, Integer id) {
        return commissionNoMapper.getCommissionBySymbolAndPrice(symbol,buyPrice,id);
    }

    @Override
    public void add(CommissionNo commissionNo) {
        commissionNoMapper.add(commissionNo);
    }

    @Override
    public void updateNumById(Integer num, Integer id) {
        commissionNoMapper.updateNumById(num,id);
    }

    @Override
    public CommissionNo getCommissionBySymbolAndPriceSll(String symbol, String buyPrice, Integer id) {
        return commissionNoMapper.getCommissionBySymbolAndPriceSll(symbol,buyPrice,id);
    }

    @Override
    public List<CommissionNo> errorEntrustList(Long userId) {
        return commissionNoMapper.errorEntrustList(userId);
    }
}
